package com.lzl.mall.order.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lzl.mall.order.dao.DetailDao;
import com.lzl.mall.order.entity.Detail;
import com.lzl.mall.order.service.DetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * //TODO
 *
 * @author zhaolinlin
 * @description //TODO
 * @createTime 2023/2/27 13:56
 */
@Service("DetailService")
public class DetailServiceImpl extends ServiceImpl<DetailDao,Detail> implements DetailService {

    @Autowired
    private DetailDao detailDao;
    @Override
    public List queryDetail(String username) {
        List<Detail> list= detailDao.selectList(new QueryWrapper<Detail>()
                .eq("username", username));
        if(list!=null){
            return list;
        }
        return null;
    }

}
